package com.peoit.honeycomb.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 存储用户的基本信息 Created by Bing.Zeng on 2015/9/23.
 */
@Entity
@Table(name = "honeycomb_users")
public class User extends BaseEntity {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1L;
	// 用户名（昵称）
	@Column(length = 24, nullable = false)
	private String userName;
	// 邮箱
	@Column(length = 128, nullable = true)
	private String email;

	// 手机
	@Column(length = 11, nullable = false)
	private String phoneNumber;
	// 登录密码
	@Column(length = 256, nullable = false)
	private String password;

	// 授权密码
	@Column(length = 256, nullable = false)
	private String authorizationCode;

	// 用户头像
	@Column(length = 256, nullable = true)
	private String avatar;
	// 用户等级
	@Column(length = 32, nullable = true)
	private String level;
	// 用户简介
	@Column(length = 1024, nullable = true)
	private String userCaption;

	// 实名认证信息 ================================================

	// 用户是否实名验证
	@Column(length = 1, nullable = true)
	private String isRealNameValidated;
	// 用户真实姓名
	@Column(length = 100, nullable = true)
	private String userRealName;

	// 固定资产
	@Column(length = 100, nullable = true)
	private String fixedAssets;;
	// 年收益
	@Column(length = 100, nullable = true)
	private String annualEarning;
	// 用户身份证号码
	@Column(length = 20, nullable = true)
	private String idNumber;
	// 紧急联系人1姓名
	@Column(length = 24, nullable = true)
	private String emergencyContactPersonName;
	// 紧急联系人号码
	@Column(length = 24, nullable = true)
	private String emergencyContactPersonNumber;
	// 身份证正面图片路径
	@Column(length = 256, nullable = true)
	private String idCardFrontFile;
	// 身份证反面图片 路径
	@Column(length = 256, nullable = true)
	private String idCardBackFile;

	//////////////////////////////// Getter&Setters//
	//////////////////////////////// @Transient/////////////////////////

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getAuthorizationCode() {
		return authorizationCode;
	}

	public void setAuthorizationCode(String authorizationCode) {
		this.authorizationCode = authorizationCode;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getUserRealName() {
		return userRealName;
	}

	public void setUserRealName(String userRealName) {
		this.userRealName = userRealName;
	}

	public String getIsRealNameValidated() {
		return isRealNameValidated;
	}

	public void setIsRealNameValidated(String isRealNameValidated) {
		this.isRealNameValidated = isRealNameValidated;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getUserCaption() {
		return userCaption;
	}

	public void setUserCaption(String userCaption) {
		this.userCaption = userCaption;
	}

	public String getIdNumber() {
		return idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}

	public String getAnnualEarning() {
		return annualEarning;
	}

	public void setAnnualEarning(String annualEarning) {
		this.annualEarning = annualEarning;
	}

	public String getFixedAssets() {
		return fixedAssets;
	}

	public void setFixedAssets(String fixedAssets) {
		this.fixedAssets = fixedAssets;
	}

	public String getIdCardBackFile() {
		return idCardBackFile;
	}

	public void setIdCardBackFile(String idCardBackFile) {
		this.idCardBackFile = idCardBackFile;
	}

	public String getIdCardFrontFile() {
		return idCardFrontFile;
	}

	public void setIdCardFrontFile(String idCardFrontFile) {
		this.idCardFrontFile = idCardFrontFile;
	}

	public String getEmergencyContactPersonName() {
		return emergencyContactPersonName;
	}

	public void setEmergencyContactPersonName(String emergencyContactPersonName) {
		this.emergencyContactPersonName = emergencyContactPersonName;
	}

	public String getEmergencyContactPersonNumber() {
		return emergencyContactPersonNumber;
	}

	public void setEmergencyContactPersonNumber(String emergencyContactPersonNumber) {
		this.emergencyContactPersonNumber = emergencyContactPersonNumber;
	}

}
